<div id="sanpham_right">
           	    <div id="title_right">
            		<p id="title_right_left"></p>
            		<div id="title_right_center">
            		  <p class="chu_title">CẬP NHẬT MẶT HÀNG </p>
            		</div>
           			<p id="title_right_right"></p>
             	</div>
                <div id="noidung_right">

<form name = "frm_updatemathang" method = "post" action = "" enctype="multipart/form-data">
<table width = "100%" cellpadding = "2" cellspacing = "2" border = "0" align = "center">
<tr> 
	<td width = "100" valign = "top"> <div align = "center"> Loại hàng </div> </td>
	<td width = "" align = "" >
		<select name = "cmb_choice" size = "1">
		<?php 
		if(is_array($data['listlh'])){
			foreach ($data['listlh'] as $item){
		?>
			<option value = "<?php echo $item['MaLH'];?>"
				<?php
					if($data['MaLH'] == $item['MaLH']){
						echo "selected";
					} 
					
				?>>
				<?php echo $item['TenLH'];?>
			</option>
		<?php
			}
		}
		?>
		</select>
	</td>
</tr>
<tr> 
	<td width = "100" valign = "top"> <div align = "center">Mặt hàng </div> </td>
	<td width = "" valign = "top">
		<input name = "tenmh" type = "text" value = "<?php echo $data['TenMH'];?>" id="input"/>
	</td>
</tr>
<tr> 
	<td width = "100" valign = "top"> <div align = "center"> Hình ảnh </div> </td>
	<td width = "" valign = "top">
		<input name = "hinhanh" type = "file" value = "<?php echo $data['HinhAnh'];?>"/>
	</td>
</tr>
<tr> 
	<td width = "100" valign = "top"> <div align = "center"> Giá </div> </td>
	<td width = "" valign = "top">
		<input name = "gia" type = "text" value = "<?php echo $data['Gia'];?>" id="input"/>
	</td>
</tr>
<tr> 
	<td width = "100" valign = "top"> <div align = "center"> Số Lượng </div> </td>
	<td width = "" valign = "top">
		<input name = "soluong" type = "text" value = "<?php echo $data['SoLuong'];?>" id="input"/>
	</td>
</tr>
<tr> 
	<td width = "100" valign = "top"> <div align = "center"> Đơn VT</div> </td>
	<td width = "" valign = "top">
		<input name = "dvt" type = "text" value = "<?php echo $data['DVT'];?>" id="input"/>
	</td>
</tr>

<tr> 
	<td width = "100" valign = "top"> <div align = "center">Mô tả</div> </td>
	<td width = "" valign = "top">
		<textarea id = "mota" name = "mota" rows="8" cols="10" class="ckeditor"> <?php echo $data['MoTa'];?></textarea>
	</td>
</tr>
<tr> 
	<td width = "100" valign = "top"> <div align = "center">Ẩn hiện</div> </td>
	<td width = "" valign = "top">
		<select name = "anhien">
		<?php 
			if($data['AnHien'] == 1){
				echo '<option value = "1"> Hiện </option>';
				echo '<option value = "0"> Ẩn </option>';}
			else {
				echo '<option value = "0"> Ẩn </option>';
				echo '<option value = "1"> Hiện </option>';
			}
			
		?>
			
		</select>
	</td>
</tr>
<tr>
	<td width = "" align = "center" colspan = "2"> <div> <input name = "btok" type = "submit" value = "Cập Nhật"/> </div> </td>
</tr>
</table>
</form>
</div>
</div>